package com.lyd.core.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lyd.api.domain.system.ModuleInfoDomain;
import com.lyd.api.service.IModuleService;
import com.lyd.core.mapper.ModuleMapper;

@Service
public class ModuleServiceImpl implements IModuleService{
	@Autowired
	private ModuleMapper moduleMapper;

	/**
	 * 获取角色模块
	 * @param userId
	 * @return
	 */
	public List<ModuleInfoDomain> findModuleByUserId(int userId) {
		return moduleMapper.findModuleByUserId(userId);
	}
}
